package com.example.cms.controller;

import com.example.cms.entity.Categories;
import com.example.cms.pojo.Mesagge;
import com.example.cms.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName CategoriesController
 * @Descriptiom TODO
 * @Author Sunbird
 * @Date 2018/12/20 15:53
 * @Version 1.0
 **/
@RestController
public class CategoriesController {
        @Autowired
        private CategoriesService categoriesService;

        public Mesagge findPageCategories(Categories categories,Mesagge mesagge){
           List<Categories> categories1= categoriesService.selectCate();
           mesagge.setList(categories1);
           return mesagge;
        }
}
